#pragma once
#include "afxcmn.h"
#include "StepEdit.h"
//#include "..\COMM\common2.h"
#include "afxdtctl.h"

// CSTDNewBaseMsg dialog
struct stStepGlobalInfo;
class CSTDNewBaseMsg : public CDialog
{
	DECLARE_DYNAMIC(CSTDNewBaseMsg)

public:
	CSTDNewBaseMsg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CSTDNewBaseMsg();

// Dialog Data
	enum { IDD = IDD_PROPPAGE_STDNEW_BASEMSG };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	afx_msg void OnSize(UINT nType, int cx, int cy);
protected:
	virtual void CalcWindowRect(LPRECT lpClientRect, UINT nAdjustType = adjustBorder);
public:
	bool m_bWindowInit;
	//CSpinButtonCtrl m_Spin;
	//CSTDDocument *m_pDoc;
	stStepGlobalInfo *m_pSTDBaseMsg;
	BOOL m_bChange;
	
	void setWindowText(void);

	//afx_msg void OnEnKillfocusEditStdnewFileName();
	afx_msg void OnEnKillfocusEditStdnewCreator();
	afx_msg void OnEnKillfocusEditStdnewFileMsg();
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	CDateTimeCtrl m_dtCreate;
};
